<template>
  <view>
    <view :style="toPageStyle" class="toPage" @click="toPage">
      <uni-icons type="closeempty" color="#fff" size="30"></uni-icons>
    </view>
    <video-list :entranceValue="200" :method="'get'" :api="'ruiVideo/index/list'" v-if="videoList" :video_list_type="3" :answerEndVideoList="videoList"></video-list>
  </view>
</template>

<script>
export default {
  data() {
    return {
      videoList:false,
      toPageStyle:''
    };
  },
  onLoad() {
    this.videoList=uni.getStorageSync('newList')
    let { menuRight ,menuTop}=uni.getStorageSync('menuInfo')
    this.toPageStyle=`left: ${menuRight};top: ${menuTop};`
  },
  methods: {
    toPage()
    {
      uni.navigateBack()
    }
  },
}
</script>

<style lang="scss">
.toPage{
  position: fixed;
  width: 48upx;
  height: 48upx;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

</style>
